/* 
 用来放置一些全局方法的
在main 中全局调用
	import operate from "common/operate.js" 
	Vue.prototype.$operate = operate
*/

// https://gitee.com/jielov/uni-app-tabbar/tree/master

export default {
	//接口
	api: function() {
		// #ifdef MP-WEIXIN 
		let version = wx.getAccountInfoSync().miniProgram.envVersion;
		switch (version) {
			case "develop": //开发预览版
				return "http://192.168.208.126:8080"
				break;
			case 'trial': //体验版
				return "http://192.168.208.126:8080"
				break;
				// break;
			case 'release': //正式版
				return "http://192.168.208.126:8080"
				break;
			default: //未知,默认调用正式版
				return "http://192.168.208.126:8080"
				break;
		}
		// #endif
		// #ifdef H5
		if (process.env.NODE_ENV === 'development') {
			console.log('开发环境')
			return 'http://192.168.208.126:8080'
		} else {
			console.log('生产环境')
			return 'http://192.168.208.126:8080'
		}
		// #endif
		// #ifdef APP-PLUS
		return "http://192.168.208.126:8080"
		// #endif
	},

	


}
